<script type="text/javascript">
jQuery(function(){
    $( "#TicketPriceShowtime" ).datetimepicker({
        defaultDate: '',
        changeMonth: true,
        numberOfMonths: 1,
        timeFormat: 'hh:mm:00',
        dateFormat:'yy-mm-dd'
    });
});
</script>
<h1><?php echo $ticket['Ticket']['title'];?></h1>
<div class="bloc">
	<div class="title">
		<?php echo $this->element('admin/bread')?>
	</div>
    <div class="content">
		<?php echo $this->Form->create('TicketPrice'); ?>
		<table style = 'width:100%'>
		<tr>
			<td>
				<?php
				echo $this->Form->input('id');
				echo $this->Form->input('ticket_id',array('type'=>'hidden','value'=>$ticket['Ticket']['id']));
				echo $this->Form->input('showtime',array('label'=>'演出时间','type'=>'text','default'=>date('Y-m-d H:i:00')));
				?> 
			</td>
			<td>
				 <?php echo $this->Form->input('price',array('label'=>'价格','default'=>'0.00')); ?>
			</td>
		</tr>
		<tr>
			<td>
				 <?php echo $this->Form->input('description',array('label'=>'备注','default'=>''));?>
			</td>
			<td>
				 <?php echo $this->Form->input('sort',array('label'=>'排序','default'=>'100'));?>
			</td>
		</tr>
		<tr>
			<td>
				 <?php echo $this->Form->input('eprice',array('label'=>'电子票价格','default'=>'')); ?>
			</td>
			<td>
				 <?php
				echo $this->Form->input('spt_eticket',array('type'=>'checkbox','label'=>'支持电子票','value'=>0));
				?>
			</td>
		</tr>
		<tr>
			<td>
				 <?php echo $this->Form->input('ticket_price_state_id',array('label'=>'状态','default'=>1)); ?>
			</td>
			<td>
			</td>
		</tr>
		<tr>
			<td colspan = 2>
			<?php echo $this->Form->submit('Submit'); ?>
			</td>
		</tr>
		</table>
		<?php echo $this->Form->end(); ?>
	</div>
</div>
